package org.example.entity;

public class ParseDocument {
    private String title;
    private String author;
    private String content;
    private String type;

    @Override
    public String toString() {
        String header = "文件解析结果：\n";
        String Content = "文件内容：\n"+content+"\n";
        String Type = "文件类型："+type+"\n";
        String Author = "作者："+author+"\n";
        String Title = "标题："+title+"\n";
        return header+Content+Type+Author+Title;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
